package com.jt.controller;

import com.jt.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping("/sayHello")
   public String sayHello(){
       User user=new User();
       //链式加载
       user.setId(1).setAge(18).setName("肖琦");
       return "hello";
   }

}
